package com.spring.dao.impl;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

import com.spring.dao.UserDao;

public class UserDaoImpl03 implements UserDao{
	
	private JdbcTemplate jdbcTemplate ;
//	private JdbcDaoSupport jdbcDaoSupport ;

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

//	public void setJdbcDaoSupport(JdbcDaoSupport jdbcDaoSupport) {
//		this.jdbcDaoSupport = jdbcDaoSupport;
//	}

	@Override
	public void saveUser() {
		String sql = "insert into tb_user(id,username,birthday,sex,address) values(null,'武器',null,'2','北京市')" ;
		jdbcTemplate.execute(sql) ;
	}

}
